var express = require('express');
const UserController = require('../controllers/UserController');
var router = express.Router();
router.get('/', function (req, resp, next) {
    resp.send('respond with a resource');
});
router.post('/login', UserController.login);
router.post('/register', UserController.register);
router.get('/logout', UserController.logout);
module.exports = router;